<template>
  <div>
    <div>Menu页面</div>

    <div v-for="item in foods" :key="item._id">
      <div>{{ item.name['zh-CN'] }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Menu',
  data() {
    return {
      foods: [],
    };
  },
  created() {
    this.getMenu();
  },
  methods: {
    async getMenu() {
      const { id } = this.$route.params;
      const result = await this.$request({
        url: `/menu/restaurantId/${id}`,
        methos: 'get',
      });
      this.foods = result.foods;
    },
  },
};
</script>

<style>
</style>
